import request from '@/utils/request'

///字典
export function dictMatching (data) {
  return request({
   url: '/system/dict/data/type/'+ data,
    method: 'get',
  })
}

// 采购执行明细
export function listDetailReport(query) {
  return request({
    url: '/po/order/report',
    method: 'get',
    params: query
  })
}

//  采购执行明细导出
export function exportDetailReport(query) {
  return request({
    url: '/po/order/report/export',
    method: 'get',
    params: query
  })
}

// 采购执行汇总
export function listTotalReport(query) {
  return request({
    url: '/po/order/summary',
    method: 'get',
    params: query
  })
}

//  采购执行明细汇总
export function exportTotalReport(query) {
  return request({
    url: '/po/order/summary/export',
    method: 'get',
    params: query
  })
}

//  采购订单明细表
export function listLineReport(query) {
  return request({
    url: '/po/order/orderDetail',
    method: 'get',
    params: query
  })
}

//  采购订单明细表导出
export function exportLineReport(query) {
  return request({
    url: '/po/order/orderDetail/export',
    method: 'get',
    params: query
  })
}

// 查询料品大类
export function materialSort() {
  return request({
    url: '/wm/warehouses/getSort',
    method: 'get',
  })
}
